<template>
  <div class="upload-btn">
    <i-upload :before-upload="beforeUpload" :show-upload-list="false" action="" name="file" accept="video/*">
      <i-button>点击上传视频</i-button>
      <br>
      <br>
    </i-upload>
  </div>
</template>

<script>
export default {
  methods: {
    // 上传文件前的钩子
    async beforeUpload (file) {
      this.$emit("before-upload", file)
    },
  }
}
</script>